import com.example.demo.openClose.ICourse;
import com.example.demo.openClose.JavaDiscountCourse;

/**
 * Created by Easettle
 * Date:2020/6/17 23:16
 * Email:easettle@qq.com
 */
public class OpenClosedPrincipleApplication {

    public static void main(String[] args) {
        JavaDiscountCourse iCourse = new JavaDiscountCourse("java", 1, 1000d);
        System.out.println("课程id" + iCourse.getId() + "\t课程名称" + iCourse.getName() + "\t课程价格:" + iCourse.getPrice());
        System.out.println("课程id" + iCourse.getId() + "\t课程名称" + iCourse.getName() + "\t课程价格:" + iCourse.getPrice() + "\t折后价:" + iCourse.getDisCountCourse());
    }
}
